package homework_03;

import java.util.Scanner;

/**
 * 输出分数
 */
public class Test_09 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入分数");
        double score = sc.nextDouble();
        if(score>0&&score<=100){
            if(score<60){
                System.out.println("E");
            }else if(score>=60&&score<70){
                System.out.println("D");
            }else if(score>=70&&score<80){
                System.out.println("C");
            }else if(score>=80&&score<90){
                System.out.println("B");
            }else if(score>=90&&score<=100){
                System.out.println("A");
            }
        }else{
            System.out.println("分数无效，请输入正确的分数");
        }
    }
}
